package net.lovedna.command.messages {
	import lovedna.framework.mvcs.Command;

	import net.lovedna.data.gamedata.AccountInfo;
	import net.lovedna.data.messages.MessageLogin;

	/**
	 * @author lee
	 */
	public class LoginCommand extends Command {
		[Inject]
		public var msg:MessageLogin;
		[Inject]
		public var account:AccountInfo;
		public function LoginCommand() {
		}
		override public function execute() : void {
			account.id=msg.id;
			account.access=msg.access;
		}
	}
}
